package homework_five_2;

import java.util.Scanner;

public class TestCompany {
    public static void main(String[] args) {
        ColEmployee[] ColaEmployee = new ColEmployee[3];
        ColaEmployee[0] = new SalariedEmployee("颜狗蛋", 07, 2500);
        ColaEmployee[1] = new HourlyEmployee("王杠精", 06, 161, 25);
        ColaEmployee[2] = new SalesEmployee("刘妹妹", 05, 60000, 0.2);
        Company company=new Company();
        Scanner input=new Scanner(System.in);
        System.out.println("请输入当前月份（1~12），输入其他数字不会计算生日奖金（慎重！！！）：");
        int month=input.nextInt();
        company.Display(ColaEmployee[0],month);
        company.Display(ColaEmployee[1],month);
        company.Display(ColaEmployee[2],month);


    }
}
